app.factory("dataService", function($http){
   // Connects to our REST API to get updates 
   // from the database
   
   var baseUri = "http://niisku.lamk.fi/~laskiga/laskiga_backend/api/index.php";
   
   var obj = {};
   
   obj.get = function(q){
       return $http.get(baseUri + q).then(function(results){
           return results.data;
       });
   };
   
});